package models

type Attachment struct {
	Id         int64  `gorm:"column:id" json:"id"`
	Type       int    `gorm:"column:type" json:"type"`
	Name       string `gorm:"column:name" json:"name"`
	Path       string `gorm:"column:path" json:"path"`
	TimeCreate int64  `gorm:"column:time_create" json:"time_create"`
	Flag       int    `gorm:"column:flag;default:0" json:"-"`
}

func (Attachment) TableName() string {
	return "attachments"
}
